CxFmsDashboardCtrl Example
Use the CxFmsDashboardCtrl object to display and manipulate an ActiveX CygNet FMS Dashboard Control in a CygNet Studio screen environment.
|
| CygNet FMS Dashboard Control Example |
To see an example FMS Dashboard control implemented in a pre-designed screen, open the FMS Dashboard Ctrl.csf file found in the APPS SCREXAMP or in the CygNet\Clients\CStudio\Screens\Examples folder.
CygNet Studio Screen Script: FMS Dashboard Ctrl.csf
Copy
CxFmsDashboardCtrl Example
Sub btnApply_EventClick()
Dim This : Set This = btnApply
FmsDashboard.SessionNodeTag = editSessionNode.Text
FmsDashboard.SessionBeginDate = editStartDate.Text
FmsDashboard.SessionEndDate = editEndDate.Text
FmsDashboard.PITDateTime = editPIT.Text
FmsDashboard.UsePIT = checkUsePIT.Check
FmsDashboard.Apply True
End Sub
Sub btnCancel_EventClick()
Dim This : Set This = btnCancel
FmsDashboard.Cancel
End Sub
Sub checkUsePIT_EventChange()
Dim This : Set This = checkUsePIT
FmsDashboard.UsePIT = this.Check
editPIT.Enable this.Check
End Sub
Sub TheView_EventInitialize()
Dim This : Set This = TheView
editSessionNode.Text = FmsDashboard.SessionNodeTag
editStartDate.Text = FmsDashboard.SessionBeginDate
editEndDate.Text = FmsDashboard.SessionEndDate
checkUsePIT.Check = FmsDashboard.UsePIT
editPIT.Text = FmsDashboard.PITDateTime
editPIT.Enable = FmsDashboard.UsePIT
End Sub


